/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package factory;

/**
 *
 * @author ebeltran
 */
public class FactoryConnectionDb {
    public static final int FbSQL = 1; 
    public static final int ExBase = 2;
    
    public static ConnectionDb open(int TypeDb){
        switch(TypeDb){
            case FactoryConnectionDb.FbSQL:
                return new FbSQLConnectionFactory();
            case FactoryConnectionDb.ExBase:
                return new ExBaseConnectionFactory();
            default:
                return null;
        }
    }       
}